package com.sunxd.vue.infrastructure.adapter.db.mapping;

import com.sunxd.vue.domain.bean.domain.User;
import com.sunxd.vue.infrastructure.adapter.db.po.UserPO;
import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.ReportingPolicy;

import static org.mapstruct.factory.Mappers.getMapper;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface UserMapping {

    UserMapping CONVERTER = getMapper(UserMapping.class);

    @Mappings({})
    UserPO domain2po(User request);

    User po2domain(UserPO request);

}
